package com.example.service;

import com.example.bean.Borrow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BorrowService {
    //查询某个用户借阅信息
    public List<Borrow> selectBorrowByUserId(int userId);
    //根据借阅Id查询借阅信息
    public List<Borrow> selectBorrowById(String bookId);

    public Borrow selectBorrow(int userId, String bookId);    //查询某个用户是否借阅某书

    //查询所有借阅信息
    public List<Borrow> selectBorrowAll();

    public int insertBorrow(Borrow borrow);

    public int deleteBorrow(int borrowId);

    public int updateBorrow(Borrow borrow);

}
